﻿<%@ page language="C#" masterpagefile="~/AdminMasterPage.master" autoeventwireup="true" inherits="RoleManage, App_Web_zodh6prk" title="角色管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<ul class="box">
<li id="submenu-active"><a href="#">角色管理</a>
        <ul>
        <li><asp:LinkButton ID="lbtnRoleList" runat="server" OnClick="lbtnRoleList_Click" CausesValidation="False">角色列表</asp:LinkButton></li><li><asp:LinkButton ID="lbtnAddRole" runat="server" OnClick="lbtnAddRole_Click" CausesValidation="False">新增角色</asp:LinkButton></li><li></li><li><asp:LinkButton ID="lbtnRoleMemberManage" runat="server" CausesValidation="False" OnClick="lbtnRoleMemberManage_Click">成员管理</asp:LinkButton></li><li><asp:LinkButton ID="lbtnRolePermit" runat="server" CausesValidation="False" OnClick="lbtnRolePermit_Click">权限设置</asp:LinkButton></li></ul>
        </li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:Panel ID="pnlInit" runat="server" Visible="False">
        Panel1角色管理<br />
        角色（用户组）管理，用于管理一组用户的信息，可以添加、删除、修改角色，设置角色成员、角色权限等</asp:Panel>
    <asp:Panel ID="pnlRoleList" runat="server" Visible="False">
        Panel2角色列表<br />
        <asp:GridView ID="gvRoleList" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvRoleList_RowDataBound"
            OnRowDeleting="gvRoleList_RowDeleting" Width="635px">
            <Columns>
                <asp:BoundField DataField="RoleID" HeaderText="ID">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="RoleName" HeaderText="角色名称">
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="RoleDesc" HeaderText="描述">
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="300px" />
                </asp:BoundField>
                <asp:CheckBoxField DataField="IsSystem" HeaderText="系统角色" Text="系统角色">
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="120px" />
                </asp:CheckBoxField>
                <asp:CheckBoxField DataField="IsUser" HeaderText="用户角色" Text="用户角色">
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="120px" />
                </asp:CheckBoxField>
                <asp:CommandField HeaderText="查看" SelectText="查看角色" ShowSelectButton="True">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                </asp:CommandField>
                <asp:CommandField HeaderText="成员管理" SelectText="成员管理" ShowSelectButton="True">
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                </asp:CommandField>
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnRoleDel" runat="server" CausesValidation="False" CommandName="Delete"
                            Text="删除"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <asp:Panel ID="pnlRoleEdit" runat="server" Visible="False">
        Panel3</asp:Panel>
    <asp:Panel ID="pnlAddRole" runat="server" Visible="False">
        Panel4</asp:Panel>
    <asp:Panel ID="pnlRoleMember" runat="server" Visible="False">
        Panel5</asp:Panel>
    <asp:Panel ID="Panel4" runat="server" Visible="False">
        Panel6</asp:Panel>
</asp:Content>

